//
//  DDBossHeaderView.m
//  DingDongZP
//
//  Created by Jyh on 16/4/20.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDBossHeaderView.h"

@interface DDBossHeaderView ()
{

    __weak IBOutlet UIView *_bottomView;
}
@end

@implementation DDBossHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)bossHeaderView
{
    return [[[NSBundle mainBundle] loadNibNamed:@"DDBossHeaderView" owner:nil options:nil] firstObject];
}

- (void)awakeFromNib
{
    self.avatarImageView.layer.masksToBounds = YES;
    self.avatarImageView.layer.cornerRadius = 38;
    
    self.certifyImageView.hidden = YES;
    
    self.attentionView.userInteractionEnabled = YES;
    self.activenessView.userInteractionEnabled = YES;
    
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.height = CGRectGetMaxY(_bottomView.frame);
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    NSLog(@"DDBossHeaderView   begin  touch _______");
}

@end
